package com.mba.base;

import com.mba.activity.ContentActivity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;


public class MyOnClickLisenter implements View.OnClickListener{
	Object object;
	String weiboId;
	int arg0;
	public MyOnClickLisenter(Object obj , int arg0) {
		this.object = obj;
		this.arg0 = arg0;
	}

	@Override
	public void onClick(View v) {
		if(object != null){
			String weiboId = object.toString();
			Intent intent = new Intent(v.getContext(),
					ContentActivity.class);
				Bundle bundle = new Bundle();
//				bundle.putString("weiboId", weiboId);
				bundle.putInt("position", arg0);
				intent.putExtras(bundle);
				Activity act =(Activity) v.getContext();
				act.startActivity(intent);
		}
	}
}